﻿$import( "SmitearWebGL.Events.Event" );

SmitearWebGL.Events.FileLoadEvent = SmitearWebGL.Events.Event.extend(
{
	/******** constructor ********/
	
	init : function( type, url, bytesLoaded, bytesTotal, message )
	{
		/******** public property ********/

		this.url = url;
		this.bytesLoaded = bytesLoaded == undefined ? 0 : bytesLoaded;
		this.bytesTotal = bytesTotal == undefined ? 0 : bytesTotal;
		this.message = message == undefined ? "" : message;
		
		this._super( type );
		this._registClass( "SmitearWebGL.Events.FileLoadEvent" );
	}
}
);

/******** static property ********/

SmitearWebGL.Events.FileLoadEvent.FILE_LOAD_COMPLETE = "file_load_complete";
SmitearWebGL.Events.FileLoadEvent.LOAD_ERROR = "file_load_error";
SmitearWebGL.Events.FileLoadEvent.LOAD_PROGRESS = "file_load_progress";
